package com.ruoyi.manage.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 采购计划对象 tb_purchase_plan
 * 
 * @author rjgc-17
 * @date 2024-12-25
 */
public class PurchasePlan extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 采购计划ID */
    private Long id;

    /** 教材ID */
    @Excel(name = "教材ID")
    private Long textbookId;

    /** 计划采购数量 */
    @Excel(name = "计划采购数量")
    private Long plannedQuantity;

    /** 制定时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "制定时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date planTime;

    /** 是否执行 */
    @Excel(name = "是否执行")
    private Integer isExecuted;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setTextbookId(Long textbookId) 
    {
        this.textbookId = textbookId;
    }

    public Long getTextbookId() 
    {
        return textbookId;
    }
    public void setPlannedQuantity(Long plannedQuantity) 
    {
        this.plannedQuantity = plannedQuantity;
    }

    public Long getPlannedQuantity() 
    {
        return plannedQuantity;
    }
    public void setPlanTime(Date planTime) 
    {
        this.planTime = planTime;
    }

    public Date getPlanTime() 
    {
        return planTime;
    }
    public void setIsExecuted(Integer isExecuted) 
    {
        this.isExecuted = isExecuted;
    }

    public Integer getIsExecuted() 
    {
        return isExecuted;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("textbookId", getTextbookId())
            .append("plannedQuantity", getPlannedQuantity())
            .append("planTime", getPlanTime())
            .append("isExecuted", getIsExecuted())
            .append("createTime", getCreateTime())
            .append("createBy", getCreateBy())
            .append("updateTime", getUpdateTime())
            .append("updateBy", getUpdateBy())
            .toString();
    }
}
